<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SciftbplandocEditDlg" widgetVar="SciftbplandocEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditSciftbplandocTitle}">

            <h:form id="SciftbplandocEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{sciftbplandocController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditSciftbplandocLabel_sciftbplandocid}" for="sciftbplandocid" />
                        <h:outputText id="sciftbplandocid" value="#{sciftbplandocController.selected.sciftbplandocid}" />

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_validaciondoc}" for="validaciondoc" />
                        <p:selectBooleanCheckbox id="validaciondoc" value="#{sciftbplandocController.selected.validaciondoc}"  required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validaciondoc}"/>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_validaciondir}" for="validaciondir" />
                        <p:selectBooleanCheckbox id="validaciondir" value="#{sciftbplandocController.selected.validaciondir}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validaciondir}"/>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_validacionugp}" for="validacionugp" />
                        <p:selectBooleanCheckbox id="validacionugp" value="#{sciftbplandocController.selected.validacionugp}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_validacionugp}"/>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbplandocController.selected.fecharegistro}" title="#{myBundle.EditSciftbplandocTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sciftbplandocController.selected.observaciones}" title="#{myBundle.EditSciftbplandocTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_sctptbperiodoid}" for="sctptbperiodoid" />
                        <p:selectOneMenu id="sctptbperiodoid" value="#{sciftbplandocController.selected.sctptbperiodoid}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_sctptbperiodoid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctptbperiodoController.items}"
                                           var="sctptbperiodoidItem"
                                           itemValue="#{sctptbperiodoidItem}"
                                           itemLabel="#{sctptbperiodoidItem.sctptbperiodoid.toString()}"
                                           />
                            <f:converter binding="#{sctptbperiodoConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_sctptbmesesid}" for="sctptbmesesid" />
                        <p:selectOneMenu id="sctptbmesesid" value="#{sciftbplandocController.selected.sctptbmesesid}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_sctptbmesesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctptbmesesController.items}"
                                           var="sctptbmesesidItem"
                                           itemValue="#{sctptbmesesidItem}"
                                           itemLabel="#{sctptbmesesidItem.sctptbmesesid.toString()}"
                                           />
                            <f:converter binding="#{sctptbmesesConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_sctbtbdatosgenid}" for="sctbtbdatosgenid" />
                        <p:selectOneMenu id="sctbtbdatosgenid" value="#{sciftbplandocController.selected.sctbtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_sctbtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="sctbtbdatosgenidItem"
                                           itemValue="#{sctbtbdatosgenidItem}"
                                           itemLabel="#{sctbtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditSciftbplandocLabel_pydgtbresponsaid}" for="pydgtbresponsaid" />
                        <p:selectOneMenu id="pydgtbresponsaid" value="#{sciftbplandocController.selected.pydgtbresponsaid}" required="true" requiredMessage="#{myBundle.EditSciftbplandocRequiredMessage_pydgtbresponsaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pydgtbresponsaController.items}"
                                           var="pydgtbresponsaidItem"
                                           itemValue="#{pydgtbresponsaidItem}"
                                           itemLabel="#{pydgtbresponsaidItem.pydgtbresponsaid.toString()}"
                                           />
                            <f:converter binding="#{pydgtbresponsaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sciftbplandocController.save}" value="#{myBundle.Save}" update="display,:SciftbplandocListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SciftbplandocEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SciftbplandocEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
